package com.cqhfan.api.clients.user;

import com.cqhfan.api.clients.user.fallback.FollowClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author 眭传洪
 * @create 2025-08-03 0:21
 */
@FeignClient(contextId = "follow", value = "user-service", fallbackFactory = FollowClientFallbackFactory.class)
public interface FollowClient {

    @GetMapping("/follow/listByUserId/{userId}")
    List<Long> listByUserId(@PathVariable("userId") Long userId);

    @GetMapping("/follow/listFriend/{userId}")
    List<Long> listFriend(@PathVariable("userId") Long userId);

}
